

//
//  MBSelectedCell.m
//  发布求租
//
//  Created by MB__Lee on 2018/6/7.
//  Copyright © 2018年 MB__Lee. All rights reserved.
//

#import "MBSelectedCell.h"
@interface MBSelectedCell()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;

@property (weak, nonatomic) IBOutlet UIButton *imgBTN;

@end


@implementation MBSelectedCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.imgBTN.hidden = YES;
    // Initialization code
}
-(void)setName:(NSString *)name{
    _name = name;
    self.nameLabel.text = name;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    if (selected) {
        
        _isAdd = !_isAdd;
        
        if (_isAdd) {
            self.imgBTN.hidden = NO;
        }else{
            self.imgBTN.hidden = YES;
        }
        
    }

    // Configure the view for the selected state
}

@end
